package cpu.components;

import system.memory.Cache;
import cpu.datastores.Register16;
import cpu.interfaces.EventListener;

public class CacheUnit {
	
	private Cache cache;
	private MemoryUnit memoryunit;
	// cache Address Register
	public Register16 MAR;
	
	// cache Buffer Register
	public Register16 MBR;
	public CacheUnit( MemoryUnit memoryunit) {

		this.memoryunit=memoryunit;
		MAR = new Register16( );
		MBR = new Register16( );
		cache=new Cache(this, memoryunit);

	}
	public void get( ) {
		cache.get( );
		
		
	}
	// put a word to memory
	public void put( ) {
		cache.put( );
		
	}
	
}
